package com.noreply.springannotation.AutowiredAndResource;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author noreply
 * @description
 * @datetime 2022/3/11 10:15
 */
@Configuration
public class AutowiredUserConfig {
    @Bean
    public AutowiredUserService autowiredUserService() {
        return new AutowiredUserService();
    }

    @Bean
    public User user(){
        return new User(99L, "autowired");
    }

}
